80153: xfi:precision
Documentation
Owners
Name | Affiliation | Start | End | |
---|---|---|---|---|
Herm Fischer |
|
fischer@markv.com | 19-02-2008 at 00:00:00 |
References
http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670664
Test Case Variations
V-01
Returns error for a non-numeric concept
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V01)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c1[1] )
(against file V01)
Outputs
- Error code: xfie:ItemIsNotNumeric
V-02
Precision is 3 for 400, reported as decimals 0
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V02)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c2[1] )
(against file V02)
Outputs
-
Result test:
$result instance of xs:nonNegativeInteger and $result eq 3
V-03
Precision is INF for 400, reported as decimals INF
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V03)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c2[2] )
(against file V03)
Outputs
-
Result test:
$result instance of xs:string and $result eq 'INF'
V-04
Precision is 0 for 400, reported at precision 0
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V04)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c2[3] )
(against file V04)
Outputs
-
Result test:
$result instance of xs:nonNegativeInteger and $result eq 0
V-05
Precision is 4 for 400, reported at precision 4
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V05)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c2[4] )
(against file V05)
Outputs
-
Result test:
$result instance of xs:nonNegativeInteger and $result eq 4
V-06
Returns "INF" for a fraction concept
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V06)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c3[1] )
(against file V06)
Outputs
-
Result test:
$result instance of xs:string and $result eq 'INF'
V-07
Returns error for a tuple concept
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V07)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c4[1] )
(against file V07)
Outputs
- Error code: xqt-err:XPTY0004
V-11
Xbrl spec 2.1 example 13 line 1
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V11)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c2[5] )
(against file V11)
Outputs
-
Result test:
$result instance of xs:nonNegativeInteger and $result eq 5
V-12
Xbrl spec 2.1 example 13 line 2
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V12)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c2[6] )
(against file V12)
Outputs
-
Result test:
$result instance of xs:nonNegativeInteger and $result eq 5
V-13
Xbrl spec 2.1 example 13 line 3
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V13)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c2[7] )
(against file V13)
Outputs
-
Result test:
$result instance of xs:nonNegativeInteger and $result eq 5
V-14
Xbrl spec 2.1 example 13 line 4
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V14)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c2[8] )
(against file V14)
Outputs
-
Result test:
$result instance of xs:nonNegativeInteger and $result eq 5
V-15
Xbrl spec 2.1 example 13 line 5
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V15)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c2[9] )
(against file V15)
Outputs
-
Result test:
$result instance of xs:nonNegativeInteger and $result eq 3
V-16
Xbrl spec 2.1 example 13 line 6
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V16)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c2[10] )
(against file V16)
Outputs
-
Result test:
$result instance of xs:nonNegativeInteger and $result eq 1
V-17
Xbrl spec 2.1 example 13 line 7
Documentation
Inputs
- schema: precision-test.xsd
- instance: precision-instance.xml (DTS Discovery starting point) (ID=V17)
-
Function Call:
xfi:precision( /xbrli:xbrl/concept:c2[11] )
(against file V17)
Outputs
-
Result test:
$result instance of xs:nonNegativeInteger and $result eq 0
Revisions
Name | On | Details |
---|---|---|
Herm Fischer | 19-02-2008 at 00:00:00 |
|
Herm Fischer | 05-04-2008 at 00:00:00 |
|
Herm Fischer | 22-06-2011 at 00:00:00 |
|